<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');

$GLOBALS['TL_DCA']['tl_project_type'] = array
    (

// Config
    'config' => array
    (
        'dataContainer'               => 'Table'
    ),

// List
    'list' => array
    (
        'sorting' => array
        (
            'mode'                    => 1,
            'fields'                  => array('name'),
            'panelLayout'             => 'search,limit',
        	'flag'                    => 1,
        ),

        'label' => array
        (
			'fields'                  => array('name'),
			'format'                  => '%s',
        ),

        'global_operations' => array
		(
			'all' => array
			(
				'label'               => &$GLOBALS['TL_LANG']['MSC']['all'],
				'href'                => 'act=select',
				'class'               => 'header_edit_all',
				'attributes'          => 'onclick="Backend.getScrollOffset();" accesskey="e"'
			)
		),
        'operations' => array
		(
			'edit' => array
			(
				'label'               => &$GLOBALS['TL_LANG']['MSC']['edit'],
				'href'                => 'table=tl_project_object',
				'icon'                => 'edit.gif',
			),
			'copy' => array
			(
				'label'               => &$GLOBALS['TL_LANG']['MSC']['copy'],
				'href'                => 'act=copy',
				'icon'                => 'copy.gif',
			),
			'delete' => array
			(
				'label'               => &$GLOBALS['TL_LANG']['tl_project_object']['delete'],
				'href'                => 'act=delete',
				'icon'                => 'delete.gif',
				'attributes'          => 'onclick="if (!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\')) return false; Backend.getScrollOffset();"',
			)
		)

    ),

    // Palettes
    'palettes' => array
    (
        'default'                     => 'name'
    ),

    // Fields
    'fields' => array
    (
        'name' => array
        (
            'label'                   => &$GLOBALS['TL_LANG']['tl_project_type']['name'],
            'search'                  => true,
			'flag'                    => 1,
			'inputType'               => 'text',
            'eval'                    => array('mandatory'=>true, 'maxlength'=>64)
        )
    )
);

?>